

<!DOCTYPE html>
<html lang="en" data-default-color-scheme=&#34;auto&#34;>



<head>
  <meta charset="UTF-8">
  <link rel="apple-touch-icon" sizes="76x76" href="/img/favicon.png">
  <link rel="icon" type="image/png" href="/img/favicon.png">
  <meta name="viewport"
        content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no, shrink-to-fit=no">
  <meta http-equiv="x-ua-compatible" content="ie=edge">
  
  <meta name="theme-color" content="#2f4154">
  <meta name="description" content="懂哥的博客">
  <meta name="author" content="John Doe">
  <meta name="keywords" content="">
  <title>闪肆的小屋</title>

  <link  rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@4.5.3/dist/css/bootstrap.min.css" />



<!-- 主题依赖的图标库，不要自行修改 -->

<link rel="stylesheet" href="//at.alicdn.com/t/font_1749284_ba1fz6golrf.css">



<link rel="stylesheet" href="//at.alicdn.com/t/font_1736178_kmeydafke9r.css">


<link  rel="stylesheet" href="/css/main.css" />

<!-- 自定义样式保持在最底部 -->


  <script id="fluid-configs">
    var Fluid = window.Fluid || {};
    var CONFIG = {"hostname":"example.com","root":"/","version":"1.8.7","typing":{"enable":true,"typeSpeed":70,"cursorChar":"_","loop":false},"anchorjs":{"enable":true,"element":"h1,h2,h3,h4,h5,h6","placement":"right","visible":"hover","icon":""},"progressbar":{"enable":true,"height_px":3,"color":"#29d","options":{"showSpinner":false,"trickleSpeed":100}},"copy_btn":true,"image_zoom":{"enable":true},"toc":{"enable":true,"headingSelector":"h1,h2,h3,h4,h5,h6","collapseDepth":0},"lazyload":{"enable":true,"onlypost":false},"web_analytics":{"enable":false,"baidu":null,"google":null,"gtag":null,"tencent":{"sid":null,"cid":null},"woyaola":null,"cnzz":null,"leancloud":{"app_id":null,"app_key":null,"server_url":null}}};
  </script>
  <script  src="/js/utils.js" ></script>
  <script  src="/js/color-schema.js" ></script>
<meta name="generator" content="Hexo 5.3.0"></head>


<body>
  <header style="height: 100vh;">
    <nav id="navbar" class="navbar fixed-top  navbar-expand-lg navbar-dark scrolling-navbar">
  <div class="container">
    <a class="navbar-brand"
       href="/">&nbsp;<strong>Homie</strong>&nbsp;</a>

    <button id="navbar-toggler-btn" class="navbar-toggler" type="button" data-toggle="collapse"
            data-target="#navbarSupportedContent"
            aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
      <div class="animated-icon"><span></span><span></span><span></span></div>
    </button>

    <!-- Collapsible content -->
    <div class="collapse navbar-collapse" id="navbarSupportedContent">
      <ul class="navbar-nav ml-auto text-center">
        
          
          
          
          
            <li class="nav-item">
              <a class="nav-link" href="/">
                <i class="iconfont icon-home-fill"></i>
                Home
              </a>
            </li>
          
        
          
          
          
          
            <li class="nav-item">
              <a class="nav-link" href="/archives/">
                <i class="iconfont icon-archive-fill"></i>
                Archives
              </a>
            </li>
          
        
          
          
          
          
            <li class="nav-item">
              <a class="nav-link" href="/categories/">
                <i class="iconfont icon-category-fill"></i>
                Categories
              </a>
            </li>
          
        
          
          
          
          
            <li class="nav-item">
              <a class="nav-link" href="/tags/">
                <i class="iconfont icon-tags-fill"></i>
                Tags
              </a>
            </li>
          
        
          
          
          
          
            <li class="nav-item">
              <a class="nav-link" href="/about/">
                <i class="iconfont icon-user-fill"></i>
                联系我
              </a>
            </li>
          
        
        
          <li class="nav-item" id="search-btn">
            <a class="nav-link" data-toggle="modal" data-target="#modalSearch">&nbsp;<i
                class="iconfont icon-search"></i>&nbsp;</a>
          </li>
        
        
          <li class="nav-item" id="color-toggle-btn">
            <a class="nav-link" href="javascript:">&nbsp;<i
                class="iconfont icon-dark" id="color-toggle-icon"></i>&nbsp;</a>
          </li>
        
      </ul>
    </div>
  </div>
</nav>

    <div class="banner" id="banner" parallax=true
         style="background: url('/img/default.png') no-repeat center center;
           background-size: cover;">
      <div class="full-bg-img">
        <div class="mask flex-center" style="background-color: rgba(0, 0, 0, 0.3)">
          <div class="page-header text-center fade-in-up">
            <span class="h2" id="subtitle" title="An elegant Material-Design theme for Hexo">
              
            </span>

            
          </div>

          
            <div class="scroll-down-bar">
              <i class="iconfont icon-arrowdown"></i>
            </div>
          
        </div>
      </div>
    </div>
  </header>

  <main>
    
      <div class="container nopadding-x-md">
        <div class="py-5" id="board"
          style=margin-top:0>
          
          <div class="container">
            <div class="row">
              <div class="col-12 col-md-10 m-auto">
                


  <div class="row mx-auto index-card">
    
    
    <article class="col-12 col-md-12 mx-auto index-info">
      <h1 class="index-header">
        
        <a href="/2021/07/12/SpringMVC/">SpringMVC</a>
      </h1>

      <p class="index-excerpt">
        <a href="/2021/07/12/SpringMVC/">
          
          
            
          
          
SpringMVC1、回顾MVC1.1、什么是MVC
MVC是模型(Model)、视图(View)、控制器(Controller)的简写，是一种软件设计规范。
是将业务逻辑、数据、显示分离的方法来组织代码。
MVC主要作用是降低了视图与业务逻辑间的双向偶合。
MVC不是一种设计模式，MVC是一种架构模式。当然不同的MVC存在差异。

Model（模型）：数据模型，提供要展示的数据，因此包含数据和
        </a>
      </p>

      <div class="index-btm post-metas">
        
          <div class="post-meta mr-3">
            <i class="iconfont icon-date"></i>
            <time datetime="2021-07-12 16:43" pubdate>
              2021-07-12
            </time>
          </div>
        
        
        
          <div class="post-meta">
            <i class="iconfont icon-tags"></i>
            
              <a href="/tags/%E7%AC%94%E8%AE%B0/">笔记</a>
            
          </div>
        
      </div>
    </article>
  </div>

  <div class="row mx-auto index-card">
    
    
    <article class="col-12 col-md-12 mx-auto index-info">
      <h1 class="index-header">
        
        <a href="/2021/06/06/WebSocket/">WebSocket入门</a>
      </h1>

      <p class="index-excerpt">
        <a href="/2021/06/06/WebSocket/">
          
          
            
          
          WebSocket
概述WebSocket协议是基于TCP的一种新的HTML5网络协议，它实现了浏览器与服务器全双工通信–允许服务器主动发送信息给客户端
握手主要需要借助HTTP/1.1 协议的101状态码进行请求完成
而WebSocket是一种持久协议，http是非持久协议
WebSocket通信协议于2011年被IETF(国际互联网工程任务组)定为标准RFC 6455
WebSocket AP
        </a>
      </p>

      <div class="index-btm post-metas">
        
          <div class="post-meta mr-3">
            <i class="iconfont icon-date"></i>
            <time datetime="2021-06-06 20:40" pubdate>
              2021-06-06
            </time>
          </div>
        
        
        
          <div class="post-meta">
            <i class="iconfont icon-tags"></i>
            
              <a href="/tags/%E9%9A%8F%E7%AC%94/">随笔</a>
            
          </div>
        
      </div>
    </article>
  </div>

  <div class="row mx-auto index-card">
    
    
    <article class="col-12 col-md-12 mx-auto index-info">
      <h1 class="index-header">
        
        <a href="/2021/06/06/%E4%BB%A3%E7%90%86%E6%A8%A1%E5%BC%8F/">代理模式</a>
      </h1>

      <p class="index-excerpt">
        <a href="/2021/06/06/%E4%BB%A3%E7%90%86%E6%A8%A1%E5%BC%8F/">
          
          
            
          
          代理模式
 为目标对象提供(包装)了一个代理，这个代理可以控制对目标对象的访问

 外界不用直接访问目标对象，而是访问代理对象，由代理对象在调用目标对象

 代理对象中可以添加监控和审查处理


静态代理
 代理对象持有目标对象的句柄

 所有调用目标对象的方法，都调用代理对象的方法

 对每个方法，需要静态编码(理解简单但代码繁琐)


动态代理每次调用目标对象方法时都会被动态拦截转发给代理处理
        </a>
      </p>

      <div class="index-btm post-metas">
        
          <div class="post-meta mr-3">
            <i class="iconfont icon-date"></i>
            <time datetime="2021-06-06 20:40" pubdate>
              2021-06-06
            </time>
          </div>
        
        
        
          <div class="post-meta">
            <i class="iconfont icon-tags"></i>
            
              <a href="/tags/%E9%9A%8F%E7%AC%94/">随笔</a>
            
          </div>
        
      </div>
    </article>
  </div>

  <div class="row mx-auto index-card">
    
    
    <article class="col-12 col-md-12 mx-auto index-info">
      <h1 class="index-header">
        
        <a href="/2021/06/06/%E6%96%87%E4%BB%B6%E8%AF%BB%E5%86%99/">文件基本操作</a>
      </h1>

      <p class="index-excerpt">
        <a href="/2021/06/06/%E6%96%87%E4%BB%B6%E8%AF%BB%E5%86%99/">
          
          
            
          
          文件基本操作文件系统是由OS(操作系统)管理的
文件系统和java进程是平行的两套系统
改动文件基本属性File包不涉及到具体的文件内容，只涉及属性(名称、大小、扩展名、修改时间)


java读写文件，只能用数据流的方式
io包涉及到具体的文件内容  
这里的in和out相对的是Java文件而言，对象是文本文件

有两个类:
节点类:直接对文件进行读写操作 
​                字
        </a>
      </p>

      <div class="index-btm post-metas">
        
          <div class="post-meta mr-3">
            <i class="iconfont icon-date"></i>
            <time datetime="2021-06-06 20:40" pubdate>
              2021-06-06
            </time>
          </div>
        
        
        
          <div class="post-meta">
            <i class="iconfont icon-tags"></i>
            
              <a href="/tags/%E9%9A%8F%E7%AC%94/">随笔</a>
            
          </div>
        
      </div>
    </article>
  </div>

  <div class="row mx-auto index-card">
    
    
    <article class="col-12 col-md-12 mx-auto index-info">
      <h1 class="index-header">
        
        <a href="/2021/05/31/Spring5%E8%AF%BE%E5%A0%82%E7%AC%94%E8%AE%B0/">Spring5</a>
      </h1>

      <p class="index-excerpt">
        <a href="/2021/05/31/Spring5%E8%AF%BE%E5%A0%82%E7%AC%94%E8%AE%B0/">
          
          
            
          
          

Spring51.、Spring1.1、简介
Spring ——&gt; 春天，为开源软件带来了春天
2002，首次推出了Spring框架的雏形：interface21框架！
Spring框架以interface21框架为基础，经过重新设计，并不断丰富其内涵，于2004年3月24日发布了1.0正式版
Spring的理念：使用现有的技术更加容易使用，本身是一个大杂烩，整合了现有的技术框架！



        </a>
      </p>

      <div class="index-btm post-metas">
        
          <div class="post-meta mr-3">
            <i class="iconfont icon-date"></i>
            <time datetime="2021-05-31 15:50" pubdate>
              2021-05-31
            </time>
          </div>
        
        
        
          <div class="post-meta">
            <i class="iconfont icon-tags"></i>
            
              <a href="/tags/%E9%9A%8F%E7%AC%94/">随笔</a>
            
          </div>
        
      </div>
    </article>
  </div>

  <div class="row mx-auto index-card">
    
    
    <article class="col-12 col-md-12 mx-auto index-info">
      <h1 class="index-header">
        
        <a href="/2021/03/05/Java/">Java</a>
      </h1>

      <p class="index-excerpt">
        <a href="/2021/03/05/Java/">
          
          
            
          
          Java学习笔记

1. 关于传值
Java 中只有值传递, 我就把除了基本类型外所有的变量都当成指针,然后他们指向真正的对象就好
2. 开放的访问属性(见 Display 项目)

public 意味着任何人都可以自由地使用

如果一个函数前没有加 public 限定，意味着和他位于同一个包的类可以访问，称为 friendly

protected

public Class 意味着任何人都可以
        </a>
      </p>

      <div class="index-btm post-metas">
        
          <div class="post-meta mr-3">
            <i class="iconfont icon-date"></i>
            <time datetime="2021-03-05 17:18" pubdate>
              2021-03-05
            </time>
          </div>
        
        
        
          <div class="post-meta">
            <i class="iconfont icon-tags"></i>
            
              <a href="/tags/Java%E7%AC%94%E8%AE%B0/">Java笔记</a>
            
          </div>
        
      </div>
    </article>
  </div>

  <div class="row mx-auto index-card">
    
    
    <article class="col-12 col-md-12 mx-auto index-info">
      <h1 class="index-header">
        
        <a href="/2021/02/05/%E5%8A%A8%E6%80%81%E8%A7%84%E5%88%92/">动态规划</a>
      </h1>

      <p class="index-excerpt">
        <a href="/2021/02/05/%E5%8A%A8%E6%80%81%E8%A7%84%E5%88%92/">
          
          
            
          
          01背包问题描述:
有N种物品和一个容量是V的背包。每件物品只能使用一次。
第i件物品的体积是v[i],价值是w[i]。
求解将哪些物品放入背包，可是这些物品的总体积不超过背包容量,输出最大价值。
考虑用一个二维数组f[i] [j] 记录f(i,j)
代码如下:
时间复杂度O(N * V),空间复杂度O(N * V)

状态表示:
f[i] [j] 表示只考虑前i个物品的前提下，每个物品只能拿一次
        </a>
      </p>

      <div class="index-btm post-metas">
        
          <div class="post-meta mr-3">
            <i class="iconfont icon-date"></i>
            <time datetime="2021-02-05 15:18" pubdate>
              2021-02-05
            </time>
          </div>
        
        
        
          <div class="post-meta">
            <i class="iconfont icon-tags"></i>
            
              <a href="/tags/%E9%9A%8F%E7%AC%94/">随笔</a>
            
          </div>
        
      </div>
    </article>
  </div>

  <div class="row mx-auto index-card">
    
    
    <article class="col-12 col-md-12 mx-auto index-info">
      <h1 class="index-header">
        
        <a href="/2021/02/05/JS/">JS</a>
      </h1>

      <p class="index-excerpt">
        <a href="/2021/02/05/JS/">
          
          
            
          
          
JS函数基础什么是JavaScript函数JavaScript 函数是被设计为执行特定任务的代码块，即具有特定功能，可以被执行的代码。
JavaScript 函数会在被调用时执行。
JavaScript函数语法——如何正确的写出一个JS函数JavaScript 函数通过 function 关键词进行定义，其后是函数名和括号 ()。
（1）函数名可包含字母、数字、下划线和美元符号。
（2）圆括号可
        </a>
      </p>

      <div class="index-btm post-metas">
        
          <div class="post-meta mr-3">
            <i class="iconfont icon-date"></i>
            <time datetime="2021-02-05 15:16" pubdate>
              2021-02-05
            </time>
          </div>
        
        
        
          <div class="post-meta">
            <i class="iconfont icon-tags"></i>
            
              <a href="/tags/JavaScript%E7%AC%94%E8%AE%B0/">JavaScript笔记</a>
            
          </div>
        
      </div>
    </article>
  </div>

  <div class="row mx-auto index-card">
    
    
    <article class="col-12 col-md-12 mx-auto index-info">
      <h1 class="index-header">
        
        <a href="/2021/01/28/STL/">STL</a>
      </h1>

      <p class="index-excerpt">
        <a href="/2021/01/28/STL/">
          
          
            
          
          
string
map
set
二分函数
vector
bitset

priority_queue
queue
unique
next _permutation
sort
iterator

 欢迎指出任何有错误或不够清晰的表达。可以在下面评论区评论，也可以邮件至 &#x37;&#x36;&#x31;&#x37;&#x34;&#x36;&#x32;&#x32;&#x39;&#64;&#113;&
        </a>
      </p>

      <div class="index-btm post-metas">
        
          <div class="post-meta mr-3">
            <i class="iconfont icon-date"></i>
            <time datetime="2021-01-28 14:46" pubdate>
              2021-01-28
            </time>
          </div>
        
        
        
          <div class="post-meta">
            <i class="iconfont icon-tags"></i>
            
              <a href="/tags/%E9%9A%8F%E7%AC%94/">随笔</a>
            
          </div>
        
      </div>
    </article>
  </div>

  <div class="row mx-auto index-card">
    
    
    <article class="col-12 col-md-12 mx-auto index-info">
      <h1 class="index-header">
        
        <a href="/2021/01/28/%E5%9B%BE%E7%9A%84%E9%81%8D%E5%8E%86/">图的遍历</a>
      </h1>

      <p class="index-excerpt">
        <a href="/2021/01/28/%E5%9B%BE%E7%9A%84%E9%81%8D%E5%8E%86/">
          
          
            
          
          图的遍历
1. DFS深度优先搜索（Depth First Search)，类似于树的先序遍历
若有 N 个顶点、E 条边，时间复杂度是


用邻接表存储，O(N + E)

用邻接矩阵存储，O(N2^22)


2. BFS广度优先搜索（Breadth First Search)，相当于树的层序遍历
若有 N 个顶点、E 条边，时间复杂度是


用邻接表存储，O(N + E)
用邻接矩阵存储，O
        </a>
      </p>

      <div class="index-btm post-metas">
        
          <div class="post-meta mr-3">
            <i class="iconfont icon-date"></i>
            <time datetime="2021-01-28 14:40" pubdate>
              2021-01-28
            </time>
          </div>
        
        
        
          <div class="post-meta">
            <i class="iconfont icon-tags"></i>
            
              <a href="/tags/%E9%9A%8F%E7%AC%94/">随笔</a>
            
          </div>
        
      </div>
    </article>
  </div>



  <nav aria-label="navigation">
    <span class="pagination" id="pagination">
      <span class="page-number current">1</span><a class="page-number" href="/page/2/">2</a><a class="extend next" rel="next" href="/page/2/"><i class="iconfont icon-arrowright"></i></a>
    </span>
  </nav>
  
  <script>
    for (ele of document.getElementById("pagination").getElementsByTagName("a")) {
      ele.href += '#board';
    }
  </script>



              </div>
            </div>
          </div>
        </div>
      </div>
    

    
      <a id="scroll-top-button" href="#" role="button">
        <i class="iconfont icon-arrowup" aria-hidden="true"></i>
      </a>
    

    
      <div class="modal fade" id="modalSearch" tabindex="-1" role="dialog" aria-labelledby="ModalLabel"
     aria-hidden="true">
  <div class="modal-dialog modal-dialog-scrollable modal-lg" role="document">
    <div class="modal-content">
      <div class="modal-header text-center">
        <h4 class="modal-title w-100 font-weight-bold">Search</h4>
        <button type="button" id="local-search-close" class="close" data-dismiss="modal" aria-label="Close">
          <span aria-hidden="true">&times;</span>
        </button>
      </div>
      <div class="modal-body mx-3">
        <div class="md-form mb-5">
          <input type="text" id="local-search-input" class="form-control validate">
          <label data-error="x" data-success="v"
                 for="local-search-input">keyword</label>
        </div>
        <div class="list-group" id="local-search-result"></div>
      </div>
    </div>
  </div>
</div>
    

    
  </main>

  <footer class="text-center mt-5 py-3">
  <div class="footer-content">
     <a href="https://hexo.io" target="_blank" rel="nofollow noopener"><span>Hexo</span></a> <i class="iconfont icon-love"></i> <a href="https://github.com/fluid-dev/hexo-theme-fluid" target="_blank" rel="nofollow noopener"><span>Fluid</span></a> 
  </div>
  

  

  
</footer>

<!-- SCRIPTS -->

  <script  src="https://cdn.jsdelivr.net/npm/nprogress@0.2.0/nprogress.min.js" ></script>
  <link  rel="stylesheet" href="https://cdn.jsdelivr.net/npm/nprogress@0.2.0/nprogress.min.css" />

  <script>
    NProgress.configure({"showSpinner":false,"trickleSpeed":100})
    NProgress.start()
    window.addEventListener('load', function() {
      NProgress.done();
    })
  </script>


<script  src="https://cdn.jsdelivr.net/npm/jquery@3.5.1/dist/jquery.min.js" ></script>
<script  src="https://cdn.jsdelivr.net/npm/bootstrap@4.5.3/dist/js/bootstrap.min.js" ></script>
<script  src="/js/debouncer.js" ></script>
<script  src="/js/events.js" ></script>
<script  src="/js/plugins.js" ></script>

<!-- Plugins -->


  
    <script  src="/js/lazyload.js" ></script>
  



  









  <script defer src="https://cdn.jsdelivr.net/npm/clipboard@2.0.6/dist/clipboard.min.js" ></script>






  <script  src="https://cdn.jsdelivr.net/npm/typed.js@2.0.11/lib/typed.min.js" ></script>
  <script>
    (function (window, document) {
      var typing = Fluid.plugins.typing;
      var title = document.getElementById('subtitle').title;
      
      typing(title)
      
    })(window, document);
  </script>



  <script  src="/js/local-search.js" ></script>
  <script>
    (function () {
      var path = "/local-search.xml";
      var inputArea = document.querySelector("#local-search-input");
      inputArea.onclick = function () {
        searchFunc(path, 'local-search-input', 'local-search-result');
        this.onclick = null
      }
    })()
  </script>















<!-- 主题的启动项 保持在最底部 -->
<script  src="/js/boot.js" ></script>



</body>
</html>
